package com.ruoyi.production.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 嫁接夹退回对象 graftingclip_return
 *
 * @author ruoyi
 * @date 2021-07-20
 */
public class GraftingclipReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退回编号自动编号，主码 */
    private Long graftingclipReturnId;

    /** 类型外码 */
    @Excel(name = "类型外码")
    private Long graftingclipTypeId;
    /** 类型 */
    private String graftingclipType;

    /** 产地国产 | 进口 */
    @Excel(name = "产地国产 | 进口")
    private String originPlace;

    /** 口径型号 */
    @Excel(name = "口径型号")
    private String graftingclipSpecification;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 退回量默认为0 */
    @Excel(name = "退回量默认为0")
    private Long returnAmount;

    /** 退回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退回时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 退回人外码 */
    @Excel(name = "退回人外码")
    private Long userId;
    /** 退回人 */
    private String userName;

    public void setGraftingclipReturnId(Long graftingclipReturnId)
    {
        this.graftingclipReturnId = graftingclipReturnId;
    }
    public Long getGraftingclipReturnId()
    {
        return graftingclipReturnId;
    }

    public void setGraftingclipTypeId(Long graftingclipTypeId)
    {
        this.graftingclipTypeId = graftingclipTypeId;
    }
    public Long getGraftingclipTypeId()
    {
        return graftingclipTypeId;
    }

    public void setGraftingclipType(String graftingclipType) {
        this.graftingclipType = graftingclipType;
    }
    public String getGraftingclipType() {
        return graftingclipType;
    }

    public void setOriginPlace(String originPlace)
    {
        this.originPlace = originPlace;
    }
    public String getOriginPlace()
    {
        return originPlace;
    }

    public void setGraftingclipSpecification(String graftingclipSpecification)
    {
        this.graftingclipSpecification = graftingclipSpecification;
    }
    public String getGraftingclipSpecification()
    {
        return graftingclipSpecification;
    }

    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }
    public String getOriginCompany()
    {
        return originCompany;
    }

    public void setReturnAmount(Long returnAmount)
    {
        this.returnAmount = returnAmount;
    }
    public Long getReturnAmount()
    {
        return returnAmount;
    }

    public void setReturnTime(Date returnTime)
    {
        this.returnTime = returnTime;
    }
    public Date getReturnTime()
    {
        return returnTime;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public Long getUserId()
    {
        return userId;
    }

    public void setUserName(String userName) { this.userName = userName; }
    public String getUserName() { return userName; }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("graftingclipReturnId", getGraftingclipReturnId())
            .append("graftingclipTypeId", getGraftingclipTypeId())
            .append("originPlace", getOriginPlace())
            .append("graftingclipSpecification", getGraftingclipSpecification())
            .append("originCompany", getOriginCompany())
            .append("returnAmount", getReturnAmount())
            .append("returnTime", getReturnTime())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
